package com.haust.user.controller;

import com.haust.model.common.ResponseResult;
import com.haust.model.entity.Resume;
import com.haust.user.service.ResumeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("resume")
@Slf4j
public class ResumeController {
    @Autowired
    private ResumeService resumeService;

//    新增简历信息
    @PostMapping
    public ResponseResult<String> save(@RequestBody Resume resume){
        resumeService.save(resume);
        log.info(resume.toString());
        return ResponseResult.success("新增简历信息成功");
    }
}
